package com.jk.smartelderlycare.controller;


import com.jk.smartelderlycare.dto.SysShipments;
import com.jk.smartelderlycare.dto.SysStore;
import com.jk.smartelderlycare.interfaces.SysStoreServiceApi;
import com.jk.smartelderlycare.pojo.PagedResponse;
import com.jk.smartelderlycare.service.SysStoreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author xw
 * @version 1.0
 * @ClassName SysStoreController
 * @program: smart-elderly-care-demo
 * @description: TODO
 * @date 2024/12/5 15:12
 */
@RestController
@Slf4j
public class SysStoreController implements SysStoreServiceApi {
    @Autowired
    private SysStoreService sysStoreService;

    @Override
    public PagedResponse<SysStore> findSysStorePaginationList(SysStore sysStore, Integer pageNum, Integer pageSize) {
        return sysStoreService.findSysStorePaginationList(sysStore,pageNum,pageSize);
    }

    @Override
    public List<SysStore> findStoreList() {
        return sysStoreService.findStoreList();
    }

    @Override
    public void addStore(SysStore sysStore) {
        sysStoreService.addStore(sysStore);
    }


}
